bitkeeper revision 1.1108.9.1 (40ff33f7mGpVA0FaO9NtlXnmThKnuA)
authorkaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk>
Thu, 22 Jul 2004 03:26:47 +0000 (03:26 +0000)
committerkaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk>
Thu, 22 Jul 2004 03:26:47 +0000 (03:26 +0000)
network.c:
  Small bugfix.

linux-2.6.7-xen-sparse/drivers/xen/net/network.c

index 51646e9c8f0e1d328afe283b878ad96dd7651e6d..9381595a2dcd0db505ee9ed2e6be41ca857ba40c 100644 (file)
@@ -275,6 +275,9 @@ static void network_alloc_rx_buffers(struct net_device *dev)
     }
     while ( (++i - np->rx_resp_cons) != NETIF_RX_RING_SIZE );
 
+    if ( unlikely(nr_pfns == 0) )
+        return;
+
     /*
      * We may have allocated buffers which have entries outstanding in the page
      * update queue -- make sure we flush those first!